package com.sz.biz.logistics.core.dto;

/**
 * Function: ProductServiceTypeDto. <br>
 * Date: 2017年11月15日 14:17 <br>
 * Author: hpeng.wang
 */
public class ProductServiceTypeDto {

    private Integer productId;
    private String serviceTypeCode;
    private String serviceTypeName;

    public ProductServiceTypeDto(Integer productId, String serviceTypeCode, String serviceTypeName) {
        this.productId = productId;
        this.serviceTypeCode = serviceTypeCode;
        this.serviceTypeName = serviceTypeName;
    }

    public ProductServiceTypeDto() {
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getServiceTypeCode() {
        return serviceTypeCode;
    }

    public void setServiceTypeCode(String serviceTypeCode) {
        this.serviceTypeCode = serviceTypeCode;
    }

    public String getServiceTypeName() {
        return serviceTypeName;
    }

    public void setServiceTypeName(String serviceTypeName) {
        this.serviceTypeName = serviceTypeName;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        ProductServiceTypeDto that = (ProductServiceTypeDto) o;

        if (productId != null ? !productId.equals(that.productId) : that.productId != null) {
            return false;
        }
        if (serviceTypeCode != null ? !serviceTypeCode.equals(that.serviceTypeCode) : that.serviceTypeCode != null) {
            return false;
        }
        return serviceTypeName != null ? serviceTypeName.equals(that.serviceTypeName) : that.serviceTypeName == null;
    }

    @Override
    public int hashCode() {
        int result = productId != null ? productId.hashCode() : 0;
        result = 31 * result + (serviceTypeCode != null ? serviceTypeCode.hashCode() : 0);
        result = 31 * result + (serviceTypeName != null ? serviceTypeName.hashCode() : 0);
        return result;
    }
}

